from autohome.management.commands.run_spider import RunSpiderCommand
from crawler.spiders.autohome.autohome_news import NewsSpider


class Command(RunSpiderCommand):
    help = 'run spider'

    name = NewsSpider.name
    is_redis_running = False

    def get_spiders(self):
        spiders = [NewsSpider]
        return spiders
